<div id="calls_journal" class="stn_journal">
	<div class="stn_journal_title"><?php echo $title; ?></div>
	<div class="stn_journal_tools">
		<?php foreach($tools as $tool) { ?>
			<?php echo $tool; ?>
		<?php } ?>	
	</div>
	<div class="stn_journal_pagination">
		<?php echo $pagination; ?>
	</div>
	<div class="stn_journal_body">
		<?php
			$data = array("name"=>"calls_activerecord",
							"id"=>"calls_activerecord",
							"value"=>$activerecord?$activerecord:'',
							"type"=>'hidden'
							); 
			echo form_input($data);
		?>
		<table border="0" cellpadding="4" cellspacing="0" >
			<tr>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($rid, array('url'=>'calls/srt/rid', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($date_doc, array('url'=>'calls/srt/date_doc', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($f_name, array('url'=>'calls/srt/f_name', 'update'=>'m_content')) ?>
				</th>
				<!-- 
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($s_name, array('url'=>'calls/srt/s_name', 'update'=>'m_content')) ?>
				</th>
				 -->
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($l_name, array('url'=>'calls/srt/l_name', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($country_name, array('url'=>'calls/srt/country_name', 'update'=>'m_content')) ?>
				</th>
				<!-- 
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($hotel_cat, array('url'=>'calls/srt/hotel_cat', 'update'=>'m_content')) ?>
				</th>
				 
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($advertise, array('url'=>'calls/srt/advertise', 'update'=>'m_content')) ?>
				</th>
				
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($summ_wanted_from, array('url'=>'calls/srt/summ_wanted_from', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($summ_wanted_to, array('url'=>'calls/srt/summ_wanted_to', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($currency_code, array('url'=>'calls/srt/currency_code', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($date_from, array('url'=>'calls/srt/date_from', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($date_to, array('url'=>'calls/srt/date_to', 'update'=>'m_content')) ?>
				</th>
				-->
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($call_status, array('url'=>'calls/srt/call_status', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote($archive, array('url'=>'calls/srt/archive', 'update'=>'m_content')) ?>
				</th>
				<th align="left" class="journal_header">
					<?php echo $this->ajax->link_to_remote( $modifyDT, array('url'=>'calls/srt/modifyDT', 'update'=>'m_content')) ?>
				</th>
			</tr>	
			<?php foreach($DS as $row) {?>
				<tr class="<?php echo ($row->rid == $activerecord)?'rowSel':''; ?>" 
					onclick="setActiveRecord('calls', '<?php echo $row->rid?>');" 
					id="calls_<?php echo $row->rid?>"
					ondblclick="setActiveRecord('calls', '<?php echo $row->rid?>');calls_edit();"
				>
					<td>
						<?php echo $row->rid; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->date_doc; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->f_name; ?>&nbsp;
					</td>
					<!-- 
					<td>
						<?php echo $row->s_name; ?>&nbsp;
					</td>
					 -->
					<td>
						<?php echo $row->l_name; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->country_name; ?>&nbsp;
					</td>
					<!-- 
					<td>
						<?php echo $row->hotel_cat; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->advertise; ?>&nbsp;
					</td>
					 
					<td>
						<?php echo $row->summ_wanted_from; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->summ_wanted_to; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->currency_code; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->date_from; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->date_to; ?>&nbsp;
					</td>
					-->
					<td>
						<?php echo $row->call_status; ?>&nbsp;
					</td>
					<td>
						<?php echo ($row->archive)?$yes:$no; ?>&nbsp;
					</td>
					<td>
						<?php echo $row->modifyDT; ?>&nbsp;
					</td>
				</tr>
			<?php } ?>
		</table>
	</div>
</div>